//
//  Notice.h
//  Contacts
//
//  Created by 武 娇 on 14-8-2.
//  Copyright (c) 2014年 李 雷川. All rights reserved.
//

#import <Foundation/Foundation.h>
@class NoticeCategory;
@interface Notice : NSObject{
    NSInteger ID;
    NSString  *title;
    NSString  *content;
    NSInteger categoryID;
    NSDate *time;
    
    
    NoticeCategory *noticeCategory;
}
@property(nonatomic, assign) NSInteger ID;
@property(nonatomic, strong) NSString  *title;
@property(nonatomic, assign) NSInteger  categoryID;
@property(nonatomic, strong) NSString  *content;
@property(nonatomic, strong) NSDate *time;
@property(nonatomic, strong) NoticeCategory *noticeCategory;


+(Notice *)analysisNoticeWithDic:(NSDictionary *)dic;

+(Notice *)getNoticeWithID:(NSInteger)ID;

+(NSArray *)getLatestNotices;

+(BOOL)clearNotice;

+(BOOL)saveWithNotice:(Notice *)notice;

+(BOOL)saveWithNotices:(NSArray *)notices;

+(BOOL)updateNoticeContent:(Notice *)notice;

+(NSArray *)getNoticesWithCategoryID:(NSInteger)categoryID;
@end
